package com.itheima.easy.service;

import com.itheima.easy.base.AjaxResult;
import com.itheima.easy.dto.PendingTasksDto;
import com.itheima.easy.entity.CheckIn;
import com.itheima.easy.entity.PendingTasks;

/**
 * @author sjqn
 * @date 2023/6/21
 */
public interface PendingTasksService {

    /**
     * 条件分页查询待办任务
     * @param pendingTasksDto
     * @return
     */
    public AjaxResult selectByPage(PendingTasksDto pendingTasksDto);

    /**
     * 设置代办
     * @param userId 下一个用户id
     * @param checkIn 入住申请
     * @param status 状态
     */
    void insert(Long userId, CheckIn checkIn, Integer status);

    /**
     * 封装待办对象
     *
     * @param checkIn
     * @param accraditationStepNoOne
     * @return
     */
    PendingTasks getPendingTasks(CheckIn checkIn, Integer accraditationStepNoOne);
}
